package Demo429;

import java.util.Scanner;

public class Test02 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你的房子的价格");
        int money = scanner.nextInt();

        System.out.println("请输入你的房子的面积");
        int number = scanner.nextInt();

        if (number<=100){
            House house1 = new Housebaofei();
            house1.houser(money);
        }else {
            House house2 = new Housebaofei100();
            house2.houser(money);
        }
    }
}
